<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title> 
    <script>
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?44c025e569b84f7e8d1178d06e15cddd";
          var s = document.getElementsByTagName("script")[0]; 
          s.parentNode.insertBefore(hm, s);
        })();
    </script>
</head>
<body>
    <ul id="list">
        <li>男装</li>
        <li>女装</li>
        <li>童装</li>
        <li>妈妈装</li>
        <li>爸爸装</li>
    </ul>
    <button id="order">下单</button>
    <script>
        let list = document.querySelector('#list');

        list.addEventListener('click',(e) => {
            _hmt.push(['_trackEvent', '服装分类', 'click',  e.target.innerText]);
            console.log(e.target.innerText);
        })
    </script>
</body>
</html>